<template>
  <div>
    <div class="indexTop">
      <van-search v-model="searchVal" placeholder="请输入搜索关键词" @focus="routeTo" background="#FF3C73"/>
    </div>
  </div>
</template>

<script>

export default {
  data () {
    return {
        searchVal:'',
        data:{},
        userInfo: {}
    }
  },

  components: {
  },

  methods: {
    routeTo(){
      wx.navigateTo({
        url:'../../pages/search/main'
      })
    }
  },

  created () {

  }
}
</script>

<style scoped lang="scss">
  .indexTop{
    z-index: 100;
    width: 100vw;
    position: fixed;
    top: 0;
  }
</style>
